package mlz.d_thread;

/*
    测试类
 */
public class MyRunnableDemo {
    public static void main(String[] args) {
        //任务对象
        MyRunnable my = new MyRunnable();

        //线程1
        Thread t1 = new Thread(my);
        //线程2
        Thread t2 = new Thread(my);

        //开启线程
        t1.start();
        t2.start();
    }
}
